import java.util.Scanner;

public class LianxiZuiXiao {
    public static void main(String[] args) {
      int []a=new int[4];
      Scanner input =new Scanner(System.in);
      System.out.println("请输入4家店商品的价格");
      for (int i=0;i<a.length;i++){
          System.out.println("请输入第"+(i+1)+"家商品价格");
          int b=input.nextInt();
          a[i]=b;
      }
      double min =a[0];
      for (int i=0;i<a.length;i++){
          if (min<a[i]){
              min=a[i];
          }
      }
        System.out.println("最小值是"+min);
    }
}
